package cate.common.table.limitrecharge.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.base.RechargeAddUpBaseRow;
import cate.common.table.limitrecharge.row.LimitRechargeRow;

import java.util.Map;
import java.util.stream.Collectors;

public class LimitRechargeSheet extends ESheet<LimitRechargeRow> {
    @Override
    public String getSheetName() {
        return "限时累充";
    }

    public Map<Integer, RechargeAddUpBaseRow> getConfigs(int configId) {
        return getList().stream().filter(row -> row.configId == configId)
                .collect(Collectors.toMap(row -> row.id, row -> row));
    }
}
